<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{faAccountGrpBean.id}"/>
		<f:event type="preRenderView" listener="#{faAccountGrpBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Fa Account Grp"/>

	<ui:define name="header">
		Fa Account Grp
	</ui:define>

	<ui:define name="subheader">
		View existing Fa Account Grp
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="faAccountGrpBeanFaAccountGrpAccGrpNo" value="Acc Grp No:"/>
			<h:outputText id="faAccountGrpBeanFaAccountGrpAccGrpNo" value="#{faAccountGrpBean.faAccountGrp.accGrpNo}"/>
			<h:outputText/>
			<h:outputLabel for="faAccountGrpBeanFaAccountGrpFaAccountGrpLevel" value="Fa Account Grp Level:"/>
			<h:link id="faAccountGrpBeanFaAccountGrpFaAccountGrpLevel" outcome="/faAccountGrpLevel/view" value="#{faAccountGrpBean.faAccountGrp.faAccountGrpLevel}">
				<f:param name="id" value="#{faAccountGrpBean.faAccountGrp.faAccountGrpLevel.accGrpLevelNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="faAccountGrpBeanFaAccountGrpAccGrpSeqNo" value="Acc Grp Seq No:"/>
			<h:outputText id="faAccountGrpBeanFaAccountGrpAccGrpSeqNo" value="#{faAccountGrpBean.faAccountGrp.accGrpSeqNo}"/>
			<h:outputText/>
			<h:outputLabel for="faAccountGrpBeanFaAccountGrpAccGrpCode" value="Acc Grp Code:"/>
			<h:outputText id="faAccountGrpBeanFaAccountGrpAccGrpCode" value="#{faAccountGrpBean.faAccountGrp.accGrpCode}"/>
			<h:outputText/>
			<h:outputLabel for="faAccountGrpBeanFaAccountGrpAccGrpOrderByNo" value="Acc Grp Order By No:"/>
			<h:outputText id="faAccountGrpBeanFaAccountGrpAccGrpOrderByNo" value="#{faAccountGrpBean.faAccountGrp.accGrpOrderByNo}"/>
			<h:outputText/>
			<h:outputLabel for="faAccountGrpBeanFaAccountGrpAccGrpDescr" value="Acc Grp Descr:"/>
			<h:outputText id="faAccountGrpBeanFaAccountGrpAccGrpDescr" value="#{faAccountGrpBean.faAccountGrp.accGrpDescr}"/>
			<h:outputText/>
			<h:outputLabel for="faAccountGrpBeanFaAccountGrpFaChartOfAccounts" value="Fa Chart Of Accounts:"/>
			<h:dataTable id="faAccountGrpBeanFaAccountGrpFaChartOfAccounts" styleClass="data-table" value="#{forgeview:asList(faAccountGrpBean.faAccountGrp.faChartOfAccounts)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Acc No"/>
					</f:facet>
					<h:link outcome="/faChartOfAccount/view">
						<f:param name="id" value="#{_item.accNo}"/>
						<h:outputText id="itemAccNo" value="#{_item.accNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Status Is Ctrl Acc"/>
					</f:facet>
					<h:link outcome="/faChartOfAccount/view">
						<f:param name="id" value="#{_item.accNo}"/>
						<h:outputText id="itemStatusIsCtrlAcc" value="#{_item.statusIsCtrlAcc}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="faAccountGrpBeanFaAccountGrpFaAccountGrpSubsForAccGrpNo" value="Fa Account Grp Subs For Acc Grp No:"/>
			<h:dataTable id="faAccountGrpBeanFaAccountGrpFaAccountGrpSubsForAccGrpNo" styleClass="data-table" value="#{forgeview:asList(faAccountGrpBean.faAccountGrp.faAccountGrpSubsForAccGrpNo)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Fa Account Grp By Sub Acc Grp No"/>
					</f:facet>
					<h:link outcome="/faAccountGrpSub/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemFaAccountGrpBySubAccGrpNo" value="#{forgeview:display(_item.faAccountGrpBySubAccGrpNo)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sub Acc Grp Descr"/>
					</f:facet>
					<h:link outcome="/faAccountGrpSub/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSubAccGrpDescr" value="#{_item.subAccGrpDescr}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="faAccountGrpBeanFaAccountGrpFaAccountGrpSubsForSubAccGrpNo" value="Fa Account Grp Subs For Sub Acc Grp No:"/>
			<h:dataTable id="faAccountGrpBeanFaAccountGrpFaAccountGrpSubsForSubAccGrpNo" styleClass="data-table" value="#{forgeview:asList(faAccountGrpBean.faAccountGrp.faAccountGrpSubsForSubAccGrpNo)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Fa Account Grp By Acc Grp No"/>
					</f:facet>
					<h:link outcome="/faAccountGrpSub/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemFaAccountGrpByAccGrpNo" value="#{forgeview:display(_item.faAccountGrpByAccGrpNo)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sub Acc Grp Descr"/>
					</f:facet>
					<h:link outcome="/faAccountGrpSub/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSubAccGrpDescr" value="#{_item.subAccGrpDescr}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>